package java_DesignPattern.StructuralPattern.DecoraterPattern;

/**
 * 装饰器类
 */
public abstract class Decorater extends FastFood {

    private FastFood fastFood;

    public Decorater(FastFood fastFood,Float price,String desc) {
        super(fastFood.getName(), price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
